package org.answer.service;

import org.answer.entity.PageResult;
import org.answer.entity.QueryPageBean;
import org.answer.pojo.Role;

import java.util.List;

public interface RoleService {
    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(Role role, Integer[] permissionIds);

    void deleteById(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds);

    List<Role> findRoleAll();

}
